{% extends "mainTemplate.html" %}

{% block title %}The Living History{% endblock %}

{% block display %}

	{% if not current_user.is_authenticated %}
	<p>Please either log in or <a href="mailto:mithunc@gmail.com">email me</a> for access.</p>
	{% endif %}
	   
	<h1>Timeline list</h1>
	<ul>
	  {% for timeline in timeline_list %}
	    <li>
		  <a href="/timeline/{{timeline.name}}">{{timeline.name}}</a>
	    </li>
	  {% endfor %}
	</ul>
	
	<p>Also check out the <a href="http://blog.thelivinghistory.org">developer blog</a> for updates.</p>
	
	{% if current_user.perms.timeline_create %}
	
	<h1>Create new timeline</h1>	
	
	<div>
	{%include "createTimelineForm.html" %}
	</div>
	
	{% endif %}
	

{% endblock %}